using Game2DFramework.Drawing;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace MechGame.Game.Particles
{
    class ExplosionInstance : AnimatedSprite
    {
        public Vector2 Position { get; private set; }

        public ExplosionInstance(Texture2D texture, Vector2 position)
            : base(texture, 64, 64, 0, 0, 25, 0.5f, false, SpriteEffects.None)
        {
            Position = position;
        }

        public void DrawExplosion(SpriteBatch spriteBatch)
        {
            Draw(spriteBatch, Position);
        }
    }
}